﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %>

<asp:Content ID="aboutTitle" ContentPlaceHolderID="TitleContent" runat="server">
    About Us
</asp:Content>
<asp:Content ID="aboutContent" ContentPlaceHolderID="MainContent" runat="server">
   
   <script type="text/javascript" >

       $(document).ready(function() { 
    var options = { 
        target:        '#output1',   // target element(s) to be updated with server response 
        success:       showResponse  // post-submit callback 
 
        // other available options: 
        //url:       url         // override for form's 'action' attribute 
        //type:      type        // 'get' or 'post', override for form's 'method' attribute 
        //dataType:  null        // 'xml', 'script', or 'json' (expected server response type) 
        //clearForm: true        // clear all form fields after successful submit 
        //resetForm: true        // reset the form after successful submit 
 
        // $.ajax options can be used here too, for example: 
        //timeout:   3000 
    }; 
 
    // bind form using 'ajaxForm' 
    $('#dasForm').ajaxForm(options); 
}); 
 
// post-submit callback 
function showResponse(responseText, statusText, xhr, $form)  {    
    alert('status: ' + statusText + '\n\nresponseText: \n' + responseText + 
        '\n\nThe output div should have already been updated with the responseText.'); 
} 
       
   </script>
   
   <div id="output1"></div>
   
    <form id="dasForm" method="post" action="<%=Url.Action("Ja") %>">
    <%=Html.TextBox("jora") %>
    <%=Html.TextBox("jora2") %>
    <input type="submit" value="s" />
    </form>
    

</asp:Content>
